package com.demo.po;

import com.demo.interceptor.FieldDescription;
import com.demo.po.base.PageBean;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 数据库表：监控服务器表
 **/

public class ServerPo extends PageBean implements Serializable {

    private static final long serialVersionUID = 1L;

    @FieldDescription(value = "服务器id", nullable = "false")
    private Integer serverid;
    @FieldDescription(value = "机器组id", nullable = "false")
    private Integer groupid;
    @FieldDescription(value = "服务器名称", length = "64", nullable = "false")
    private String hostname;
    @FieldDescription(value = "服务器ip", length = "32", nullable = "false")
    private String host;
    @FieldDescription(value = "连接端口", nullable = "false")
    private Integer sshport;
    @FieldDescription(value = "连接用户名", length = "64", nullable = "false")
    private String sshname;
    @FieldDescription(value = "连接密码", length = "64", nullable = "false")
    private String sshpwd;
    @FieldDescription(value = "登录状态")
    private Integer status;
    @FieldDescription(value = "描述", length = "255")
    private String description;
    private String addtime;
    private String updatetime;
    @FieldDescription(value = "自定义执行脚本名字集合", length = "255")
    private String shells;

    private String[] idlist; //id列表
    private String groupname; // 权限组名称


    public Integer getServerid(){
        return serverid;
    }
    public void setServerid(Integer serverid){
        this.serverid=serverid;
    }
    public Integer getGroupid(){
        return groupid;
    }
    public void setGroupid(Integer groupid){
        this.groupid=groupid;
    }
    public String getHostname(){
        return hostname;
    }
    public void setHostname(String hostname){
        this.hostname=hostname;
    }
    public String getHost(){
        return host;
    }
    public void setHost(String host){
        this.host=host;
    }
    public Integer getSshport(){
        return sshport;
    }
    public void setSshport(Integer sshport){
        this.sshport=sshport;
    }
    public String getSshname(){
        return sshname;
    }
    public void setSshname(String sshname){
        this.sshname=sshname;
    }
    public String getSshpwd(){
        return sshpwd;
    }
    public void setSshpwd(String sshpwd){
        this.sshpwd=sshpwd;
    }
    public Integer getStatus(){
        return status;
    }
    public void setStatus(Integer status){
        this.status=status;
    }
    public String getDescription(){
        return description;
    }
    public void setDescription(String description){
        this.description=description;
    }
    public String getAddtime(){
        return addtime;
    }
    public void setAddtime(String addtime){
        this.addtime=addtime;
    }
    public String getUpdatetime(){
        return updatetime;
    }
    public void setUpdatetime(String updatetime){
        this.updatetime=updatetime;
    }
    public String getShells(){
        return shells;
    }
    public void setShells(String shells){
        this.shells=shells;
    }
    public String[] getIdlist(){
        return idlist;
    }
    public void setIdlist(String[] idlist){
        this.idlist=idlist;
    }

    public String getGroupname() {
        return groupname;
    }

    public void setGroupname(String groupname) {
        this.groupname = groupname;
    }
}
